package com.yxhl.zoume.common.presenter;

import com.yxhl.zoume.common.ui.view.BaseView;

/**
 * Created by Xboy on 16/3/4.
 */
public interface IPresenter {

    /**
     * Method that control the lifecycle of the view. It should be called in the view's
     * (Activity or Fragment) onResume() method.
     */
    void onResume();

    /**
     * Method that control the lifecycle of the view. It should be called in the view's
     * (Activity or Fragment) onPause() method.
     */
    void onPause();

    /**
     * Method that control the lifecycle of the view. It should be called in the view's
     * (Activity or Fragment) onDestroy() method.
     */

    void onDestroy();

    /**
     * Method that use for attach view.
     *
     * @param view
     */
    void attachView(BaseView view);
}
